package models;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import play.db.jpa.GenericModel;

@Entity
@Table(name = "organization")
public class Organization extends GenericModel implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public long id;

	public String stationlvl;

	public String city;

	@Column(nullable = false, length = 20)
	public String code;

	@Column(precision = 5, nullable = true)
	public Integer connectcosttime;

	@Column(nullable = false, precision = 10)
	public long createby;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(nullable = false)
	public Date createtime;

	@Column(nullable = false, precision = 1)
	public boolean isactive;

	public String isonline;

	@Column(nullable = false, length = 100)
	public String name;

	@Column(nullable = true, precision = 10)
	public Long parentid;

	@Column(length = 100)
	public String serversaddress;

	public String address;

	@Column(nullable = false, length = 10)
	public String type;

	public String linkman;

	public String phoneno;

	public String trafficroute;

	@Column(precision = 10, nullable = false)
	public long updateby;

	@Column(nullable = false)
	@Temporal(TemporalType.TIMESTAMP)
	public Date updatetime;

	public String fullclassname;

	@Transient
	public Boolean isSelect;

	@Column(length = 100)
	public String syncserversaddress;
	


}